import request from '/@/utils/request';


//告警信息统计
export function alarmAllInfo(query?: Object) {
	return request({
		url: '/admin/alarmHomePage/getEchartsByTimeRange',
		method: 'get',
		params: query,
	});
}

//告警状态统计排名
export function alarmStatus(query?: Object) {
	return request({
		url: '/admin/alarmHomePage/getStatusStatis',
		method: 'get',
		params: query,
	});
}
//告警等级排名
export function alarmLevel(query?: Object) {
	return request({
		url: '/admin/alarmHomePage/getLevelStatis',
		method: 'get',
		params: query,
	});
}
//告警类型占比统计
export function alarmType(query?: Object) {
	return request({
		url: '/admin/alarmHomePage/getAlarmTypeProp',
		method: 'get',
		params: query,
	});
}
